<template>
  <div class="app-container">
    <evaluate-query :query-params="queryParams" @handleAdd="handleAdd" @getList="getList"/>
    <evaluate-table ref="evaluateTable" :query-params="queryParams" @handleUpdate="handleUpdate"/>
    <evaluate-form ref="evaluateForm" @getList="getList"/>
  </div>
</template>

<script>
import EvaluateQuery from '@/views/sacw/evaluate/query'
import EvaluateTable from '@/views/sacw/evaluate/table'
import EvaluateForm from '@/views/sacw/evaluate/form'

export default {
  name: 'evaluate',
  components: { EvaluateForm, EvaluateTable, EvaluateQuery },
  data() {
    return {
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        evaluateNo: undefined,
        evaluateAgency: undefined
      },
    }
  },
  methods: {
    getList() {
      this.$refs.evaluateTable.getList()
    },
    handleUpdate(row) {
      this.$refs.evaluateForm.handleUpdate(row)
    },
    handleAdd() {
      this.$refs.evaluateForm.handleAdd()
    }
  }
}
</script>
